package com.shuiqinling.ww.android.Util;

import java.util.HashMap;

import android.content.Context;
import android.util.Log;

import com.excelliance.lbsdk.IQueryUpdateCallback;
import com.excelliance.lbsdk.LebianSdk;
import com.shuiqinling.ww.android.AndroidDirectCall;

public class LebianHelper {
	public static void queryUpdate(final Context ctx) {
		Log.d("MainActivity", "queryUpdate");
		final IQueryUpdateCallback callBack = new IQueryUpdateCallback() {

			public void onUpdateResult(int result) {
				Log.d("MainActivity", "onResume result=" + result);
				UIHelper.ShowToast("更新新返回码"+result,0);
				
				 
				HashMap<String, String> param=new HashMap<String, String>();
				param.put("result", String.valueOf(result));
				AndroidDirectCall.SendMessageToUnity("LEBIAN_UPDATE_RESULT", param);
				
			}
		};
		LebianSdk.queryUpdate(ctx, callBack, null);
	}
}
